3.13 \(\int \frac {\log ^2(c x)}{x^2} \, dx\)

Optimal. Leaf size=26 \[ -\frac {\log ^2(c x)}{x}-\frac {2 \log (c x)}{x}-\frac {2}{x} \]

[Out]

-2/x-2*ln(c*x)/x-ln(c*x)^2/x

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2305, 2304} \[ -\frac {\log ^2(c x)}{x}-\frac {2 \log (c x)}{x}-\frac {2}{x} \]

Antiderivative was successfully verified.

[In]

Int[Log[c*x]^2/x^2,x]

[Out]

-2/x - (2*Log[c*x])/x - Log[c*x]^2/x

Rule 2304

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Log[c*x^
n]))/(d*(m + 1)), x] - Simp[(b*n*(d*x)^(m + 1))/(d*(m + 1)^2), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rule 2305

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Lo
g[c*x^n])^p)/(d*(m + 1)), x] - Dist[(b*n*p)/(m + 1), Int[(d*x)^m*(a + b*Log[c*x^n])^(p - 1), x], x] /; FreeQ[{
a, b, c, d, m, n}, x] && NeQ[m, -1] && GtQ[p, 0]

Rubi steps

\begin {align*} \int \frac {\log ^2(c x)}{x^2} \, dx &=-\frac {\log ^2(c x)}{x}+2 \int \frac {\log (c x)}{x^2} \, dx\\ &=-\frac {2}{x}-\frac {2 \log (c x)}{x}-\frac {\log ^2(c x)}{x}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 26, normalized size = 1.00 \[ -\frac {\log ^2(c x)}{x}-\frac {2 \log (c x)}{x}-\frac {2}{x} \]

Antiderivative was successfully verified.

[In]

Integrate[Log[c*x]^2/x^2,x]

[Out]

-2/x - (2*Log[c*x])/x - Log[c*x]^2/x

________________________________________________________________________________________

fricas [A]  time = 0.45, size = 19, normalized size = 0.73 \[ -\frac {\log \left (c x\right )^{2} + 2 \, \log \left (c x\right ) + 2}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*x)^2/x^2,x, algorithm="fricas")

[Out]

-(log(c*x)^2 + 2*log(c*x) + 2)/x

________________________________________________________________________________________

giac [A]  time = 0.19, size = 26, normalized size = 1.00 \[ -\frac {\log \left (c x\right )^{2}}{x} - \frac {2 \, \log \left (c x\right )}{x} - \frac {2}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*x)^2/x^2,x, algorithm="giac")

[Out]

-log(c*x)^2/x - 2*log(c*x)/x - 2/x

________________________________________________________________________________________

maple [A]  time = 0.03, size = 27, normalized size = 1.04 \[ -\frac {\ln \left (c x \right )^{2}}{x}-\frac {2 \ln \left (c x \right )}{x}-\frac {2}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(c*x)^2/x^2,x)

[Out]

-2/x-2/x*ln(c*x)-ln(c*x)^2/x

________________________________________________________________________________________

maxima [A]  time = 0.53, size = 19, normalized size = 0.73 \[ -\frac {\log \left (c x\right )^{2} + 2 \, \log \left (c x\right ) + 2}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*x)^2/x^2,x, algorithm="maxima")

[Out]

-(log(c*x)^2 + 2*log(c*x) + 2)/x

________________________________________________________________________________________

mupad [B]  time = 3.59, size = 19, normalized size = 0.73 \[ -\frac {{\ln \left (c\,x\right )}^2+2\,\ln \left (c\,x\right )+2}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(c*x)^2/x^2,x)

[Out]

-(2*log(c*x) + log(c*x)^2 + 2)/x

________________________________________________________________________________________

sympy [A]  time = 0.12, size = 20, normalized size = 0.77 \[ - \frac {\log {\left (c x \right )}^{2}}{x} - \frac {2 \log {\left (c x \right )}}{x} - \frac {2}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(c*x)**2/x**2,x)

[Out]

-log(c*x)**2/x - 2*log(c*x)/x - 2/x

________________________________________________________________________________________